import request from '@/utils/request'

// 查询产品列表
export function listData(query) {
  return request({
    url: '/client-products',
    method: 'get',
    params: query
  })
}

//新增产品

export function addManager(query) {
  return request({
    url: '/client-products',
    method: 'post',
    data: query
  })
}

export function deleAdmin(ids) {
  return request({
    url: '/client-products/' + ids,
    method: 'delete'
  })
}

export function clearCache() {
  return request({
    url: '/search/clearCache',
    method:'get'
  })
}

export function getProducts() {
  return request({
    url:'/client-product-users/productCookieList',
    method:'get'
  })
}

export function updateCkConfig(params) {
  return request({
    url:'/client-users/updateCkConfig',
    method:'get',
    params: params
  })
}

